<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>欢迎页</title>
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <link rel="stylesheet" href="css/font-awesome.min.css">
    <link rel="stylesheet" href="css/AdminLTE.min.css">
    <!-- Ionicons -->
    <link rel="stylesheet" href="https://cdn.bootcss.com/ionicons/2.0.1/css/ionicons.min.css">
    <!-- Date Picker -->
    <link rel="stylesheet" href="plugins/bootstrap-datepicker/css/bootstrap-datepicker.min.css">
    <!-- Daterange picker -->
    <link rel="stylesheet" href="plugins/bootstrap-daterangepicker/daterangepicker.css">
    <script src="libs/jquery.min.js"></script>
    <script src="libs/vue.min.js"></script>
    <script src="plugins/jqgrid/jquery.jqGrid.min.js"></script>
    <script src="js/common.js"></script>
    <style>
        .container {
            width: 100%;
        }
    </style>
</head>
<body>
<div class="container" id="app" v-cloak>
    <h3>
        快速启动 <small>控制面板</small>
    </h3>
    <div class="row">
        <!-- ./col -->
        <div class="col-md-3 col-xs-6">
            <!-- small box -->
            <div class="small-box bg-green">
                <div class="inner">
                    <h3>{{data.userTotal}}</h3>
                    <p>平台用户信息</p>
                </div>
                <div class="icon">
                    <i class="ion ion-person-add"></i>
                </div>
                <a href="#" onclick="greenChannel('v_user.html')" class="small-box-footer">更多 <i class="fa fa-arrow-circle-right"></i></a>
            </div>
        </div>
        <div class="col-md-3 col-xs-6">
            <!-- small box -->
            <div class="small-box bg-aqua">
                <div class="inner">
                    <h3>{{data.shootTotal}}</h3>
                    <p>平台约拍信息</p>
                </div>
                <div class="icon">
                    <i class="ion ion-aperture"></i>
                </div>
                <a href="#" onclick="greenChannel('shoot.html')" class="small-box-footer">更多 <i class="fa fa-arrow-circle-right"></i></a>
            </div>
        </div>
        <div class="col-md-3 col-xs-6">
            <!-- small box -->
            <div class="small-box bg-yellow">
                <div class="inner">
                    <h3>{{data.worksTotal}}</h3>
                    <p>平台作品信息</p>
                </div>
                <div class="icon">
                    <i class="ion ion-images"></i>
                </div>
                <a href="#" onclick="greenChannel('works.html')" class="small-box-footer">更多 <i class="fa fa-arrow-circle-right"></i></a>
            </div>
        </div>
        <!-- ./col -->
        <div class="col-md-3 col-xs-6">
            <!-- small box -->
            <div class="small-box bg-red">
                <div class="inner">
                    <h3>{{data.placeTotal}}</h3>

                    <p>平台场地信息</p>
                </div>
                <div class="icon">
                    <i class="ion ion-star"></i>
                </div>
                <a href="#" onclick="greenChannel('place.html')" class="small-box-footer">更多 <i class="fa fa-arrow-circle-right"></i></a>
            </div>
        </div>
        <!-- ./col -->
    </div>

    <div class="row">
        <!-- Left col -->
        <section class="col-md-7 connectedSortable ui-sortable">
            <!-- 待办事项列表 -->
            <div class="box box-primary">
                <div class="box-header ui-sortable-handle" style="cursor: move;">
                    <i class="ion ion-clipboard"></i>

                    <h3 class="box-title">待处理《作品信息审核》</h3>

                </div>
                <!-- /.box-header -->
                <div class="box-body">
                    <ul class="todo-list ui-sortable">
                        <li v-for="(item,index) in data.worksItemList">
                            <!-- drag handle -->
                            <span class="handle ui-sortable-handle">
                                <i class="fa fa-ellipsis-v"></i>
                                <i class="fa fa-ellipsis-v"></i>
                            </span>
                            <!-- checkbox -->
                            <input type="checkbox" value="" />
                            <!-- todo text -->
                            <span class="text">{{item.nickname}} - 《{{item.name}}》</span>
                            <!-- Emphasis label -->
                            <small class="label label-primary"><i class="fa fa-clock-o"></i> {{item.createTime}}</small>
                            <!-- General tools such as edit or delete-->
                            <div class="tools">
                                <i class="fa fa-edit" onclick="javascript:greenChannel('works.html')"></i>
                            </div>
                        </li>
                    </ul>
                </div>
                <!-- /.box-body -->
                <!--<div class="box-footer clearfix no-border">-->
                    <!--<div class="box-tools pull-right">-->
                        <!--<ul class="pagination pagination-sm inline">-->
                            <!--<li><a href="#">«</a></li>-->
                            <!--<li><a href="#">1</a></li>-->
                            <!--<li><a href="#">2</a></li>-->
                            <!--<li><a href="#">3</a></li>-->
                            <!--<li><a href="#">»</a></li>-->
                        <!--</ul>-->
                    <!--</div>-->
                <!--</div>-->
            </div>
            <!-- /.box -->
        </section>
        <!-- /.Left col -->
        <!-- right col (We are only adding the ID to make the widgets sortable)-->
        <section class="col-md-5 connectedSortable ui-sortable">
            <!-- Calendar -->
            <div class="box box-solid bg-green-gradient">
                <div class="box-header">
                    <i class="fa fa-calendar"></i>

                    <h3 class="box-title">日历</h3>
                </div>
                <!-- /.box-header -->
                <div class="box-body no-padding">
                    <!--The calendar -->
                    <div class="calendar" style="width: 100%"></div>
                </div>
                <!-- /.box-body -->
                <div class="box-footer text-black">
                    <div class="row">
                        <div class="col-sm-6">
                            <!-- Progress bars -->
                            <div class="clearfix">
                                <a href="#" onclick="greenChannel('shoot.html')">
                                    <span class="pull-left">当日约拍信息</span>
                                    <small class="pull-right">{{data.shootNowTotalUnAudit}}/{{data.shootNowTotal}}</small>
                                </a>
                            </div>
                            <div class="progress xs">
                                <div class="progress-bar progress-bar-green" :style="{'width':toPercent(data.shootNowTotalUnAudit,data.shootNowTotal)}"></div>
                            </div>

                            <div class="clearfix">
                                <a href="#" onclick="greenChannel('works.html')">
                                    <span class="pull-left">当日作品信息</span>
                                    <small class="pull-right">{{data.worksNowTotalUnAudit}}/{{data.worksNowTotal}}</small>
                                </a>
                            </div>
                            <div class="progress xs">
                                <div class="progress-bar progress-bar-green" :style="{'width':toPercent(data.worksNowTotalUnAudit,data.worksNowTotal)}"></div>
                            </div>
                        </div>
                        <!-- /.col -->
                        <div class="col-sm-6">
                            <div class="clearfix">
                                <a href="#" onclick="greenChannel('place.html')">
                                    <span class="pull-left">当日场地信息</span>
                                    <small class="pull-right">{{data.placeNowTotalUnAudit}}/{{data.placeNowTotal}}</small>
                                </a>
                            </div>
                            <div class="progress xs">
                                <div class="progress-bar progress-bar-green" :style="{'width':toPercent(data.placeNowTotalUnAudit,data.placeNowTotal)}"></div>
                            </div>

<!--                            <div class="clearfix">-->
<!--                                <a href="task/timeline.html">-->
<!--                                    <span class="pull-left">任务 #4</span>-->
<!--                                    <small class="pull-right">40%</small>-->
<!--                                </a>-->
<!--                            </div>-->
<!--                            <div class="progress xs">-->
<!--                                <div class="progress-bar progress-bar-green" style="width: 40%;"></div>-->
<!--                            </div>-->
                        </div>
                        <!-- /.col -->
                    </div>
                    <!-- /.row -->
                </div>
            </div>
            <!-- /.box -->

        </section>
        <!-- right col -->
    </div>
</div>
<script src="js/main.js"></script>
<script src="js/green_channel.js"></script>
<!-- jQuery UI 1.11.4 -->
<script src="plugins/jquery-ui/jquery-ui.min.js"></script>
<script>
    $.widget.bridge('uibutton', $.ui.button);
</script>
<script src="plugins/bootstrap-daterangepicker/daterangepicker.js"></script>
<!-- datepicker -->
<script src="plugins/bootstrap-datepicker/js/bootstrap-datepicker.min.js"></script>
<script>
    $(function(){
        //The Calender
        $(".calendar").datepicker('setDate' , new Date());
    })
</script>
</body>
</html>